var http = require('http');

exports.request = function (_data, _options, callback) {
    var req = http.request(_options, function (res) {
        res.setEncoding('utf-8');
        res.on('data', function (chunk) {
            callback(chunk);
        });

    });

    req.write(_data + "\n");
    req.end();
};

